<template>
  <div id="bottomItem">
    <a @click="navigation">
      <div id="itemImg">
        <img :src='itemSrc'>
      </div>
      <div id="text">
        <slot name="text">{{itemText}}</slot>
      </div>
    </a>
  </div>
</template>

<script>
  export default {
    name: "bottomItem",
    props: {
      itemText: {
        type: String,
        default() {
          return '';
        }
      },
      itemSrc: {
        type: String,
        default() {
          return '';
        }
      },
      to: {
        type: String,
        default() {
          return '';
        }
      }
    },
    methods:{
      navigation(){
        this.$router.push(this.to)
      }
    }
  }
</script>

<style scoped>
  #bottomItem a{
    display: block;
    align-content: center;
  }
  #itemImg{
    display: flex;
  }
  #itemImg img{
    width: 38px;
    margin: 1px auto;
  }
  #text{
    text-align: center;
    font-size: small;
    color: white;
  }
</style>
